package com.mx.kn.cstf2.utils;

import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 * 
 * @author mew
 */
public class FormatFecha {

	public static String getFormatDate(Date date){
		DateFormat formato = DateFormat.getDateInstance(DateFormat.LONG, Locale.US);
		SimpleDateFormat format = new SimpleDateFormat("MMMM dd yyyy  HH:mm:ss", Locale.US);
		return format.format(date);
	}
	
	public static String getFormatImple(Date date){
		DateFormat formato = DateFormat.getDateInstance(DateFormat.LONG, Locale.US);
		SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyy  HH:mm", Locale.US);
		return format.format(date);
	}
	
	
	public static String getDay(Date date){
		SimpleDateFormat format = new SimpleDateFormat("dd");
		return format.format(date);
	}
	
	public static String getMonth(Date date){
		SimpleDateFormat format = new SimpleDateFormat("MMMM");
		return format.format(date);
	}
	
	public static String getYear(Date date){
		SimpleDateFormat format = new SimpleDateFormat("yyyy");
		return format.format(date);
	}
	
}